package com.jnc.web.biz.system.mapper;

import com.jnc.core.base.model.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Auther: jjn
 * @Date: 2020/7/31
 * @Desc:
 */
@Mapper
public interface MenuMapper {
    public List<Menu> queryMenu(Menu menu);
    public List<Menu> checkMenu(Menu record);
    public Menu getMenu(Integer menuId);
    public int deleteMenu(Integer menuId);
    public int addMenu(Menu record);
    public int editMenu(Menu record);
    public List<Menu> queryMenusByUser(Integer userId);
    public List<Menu> queryAllMenu();
    public List<Menu> queryAllNormalMenu();
    public Integer getChildrenMenuCount(Integer parentId);
    public List<String> selectMenuTree(Integer roleId);
    public List<String> queryPermsByUser(Integer userId);
    public int deleteRoleMmenu(Integer menuId);

}
